package org.shj.pattern.factorymethod

trait Logger {
  def log(msg: String)
}

class FileLogger extends Logger{
  def log(msg: String){
    println(s"Write $msg to file")
  }
}

class HDFSLogger extends Logger{
  def log(msg: String){
    println(s"Write $msg to HDFS")
  }
}